

<?php if($location_popular){?>
<div class="widget">
    <div class="widgetTitle">
        <h3><?= Config::get('Location::popular.title');?> </h3>
        <span class="alignRight">+ <a href="<?= URL::base();?>/location/all">View all</a></span>
    </div>
    <!-- /.widgetTitle -->
    <div class="widgetContent">
        <ul class="list">
            <?php foreach($location_popular as $location_popular):?>
                <li class="col-sm-4 col-xs-6">+ <a href="<?= URL::base();?>/<?= $location_popular->slug;?>"><?= $location_popular->name;?></a></li>
            <?php endforeach;?>
        </ul>
    </div>
    <!-- /.widgetContent -->
</div>
<!-- /.widget -->
<?php }?>